// try the original
alert(document.getElementById('test'));
// rename the method
var a=function(id){return document.getElementById(id)};
alert(a('test'));
// rename document
var b=document;
alert(b.getElementById('test'));